home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
educate
/
tcndos34.zip
/
TCNSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-08-29
|
11KB
|
381 lines
@echo off
cls
if "%1" == "" goto explain
if "%1" == "?" goto explain
:install
if "%1" == "C" goto installa
if "%1" == "D" goto installa
if "%1" == "E" goto installa
if "%1" == "F" goto installa
goto drivechk
:installa
@echo off
if not "%2" == "" goto installb
if exist %1:\usa\options.lxx goto warning1
if exist %1:\usa\*.* goto fail3
goto chk1a
:installb
if exist %1:\%2\options.lxx goto warning1
if exist %1:\%2\*.* goto fail3
:chk1a
if "%2" == "" TCND34AB %1:\usa
if not "%2" == "" TCND34AB %1:\%2
:CHKBB1
IF EXIST TCND34BB.EXE GOTO BB1
CLS
ECHO INSERT DISK 2 OF 2 WITH TCND34BB.EXE ON IT.
ECHO.
PAUSE
GOTO CHKBB1
:BB1
if "%2" == "" TCND34BB %1:\usa
if not "%2" == "" TCND34BB %1:\%2
goto pass1
:warning1
cls
echo WARNING!!!
echo.
echo A copy of the TCN program already exists. If you continue, it will be
echo overwritten and any previous work you have done will be lost.
echo.
echo To avoid overwriting, use the CTRL + C key combination and then type a Y
echo according to the following instructions:
echo.
echo 1) Press and hold the CTRL key.
echo 2) Type the letter C.
echo 3) Release both keys. A prompt appears "Terminate batch job (Y/N)?"
echo 4) Type the letter Y.
echo.
echo The DOS prompt appears. Type TCNSTALL ? to get information about changing
echo install target drive and directory.
echo.
echo If you want to overwrite, press any other key.
echo.
pause
cls
echo Press and hold the "Y" key to overwrite all files. When you hear
echo rapid beeping sounds coming from your computer, release the "Y" key.
echo When file extraction stops, hold the "Y" key down some more.
echo.
echo Continue this process until you get a DOS prompt.
echo.
goto chk1a
:fail1
cls
echo Installation was not successful.
echo.
echo You typed the following command:
echo.
echo TCNSTALL %1 %2
echo.
echo Verify the letter you specified (%1) is a valid drive. Also, verify
echo that you did NOT type a colon after the letter.
echo.
if not "%2" == "" echo Verify the path you specified (%2) is valid.
echo.
echo Type TCNSTALL with:
echo.
echo a different drive letter, or
if not "%2" == "" echo a different path, or
echo the ? option.
ECHO.
goto end
:fail3
cls
echo Installation was not attempted.
echo.
echo The install path that you specified is already in use.
echo.
echo You typed the following command:
echo.
echo TCNSTALL %1 %2
echo.
echo Type TCNSTALL with:
echo.
echo a different drive letter, or
if not "%2" == "" echo a different path (option 2), or
if "%2" == "" echo a path specified (other than USA) using option 2, or
echo the ? option.
echo.
goto end
:explain
cls
echo This TCNSTALL.BAT file installs version 3.4 of the TCN program on your hard
echo drive.
echo.
echo Example valid commands are presented below with a brief explaination.
echo.
echo TCNSTALL (with no options) gives you this abbreviated information screen.
echo.
echo TCNSTALL ? gives you more information about installation.
echo.
echo TCNSTALL C installs the TCN program in USA (default) directory on C: drive.
echo Colon ok, not required. Trailing backslash not allowed.
echo.
echo TCNSTALL C MYDIR installs the TCN program in MYDIR (second option) directory
echo on the C: drive. No leading or trailing backslashes.
echo.
IF "%1" == "" goto end
PAUSE
CLS
:explain1
echo HARDWARE REQUIREMENTS
echo.
echo RAM: 640K is required with 512K free at DOS prompt.
echo.
echo Hard Drive: Required, 1.0 meg mininimum, 1.5 recommended
echo.
echo Monitor: VGA color recommended but not required
echo.
echo Mouse: Recommended but not required.
echo.
echo Printer: any generic ASCII text printer is fine
echo.
pause
cls
echo CRASHES
echo.
echo If the TCN program crashes during startup, insufficient memory is the
echo most likely cause.
echo.
echo Refer to CRASHES DURING STARTUP . . . in the README.DOC file for more
echo information.
echo.
pause
goto end
:drivechk
echo on
if "%1" == "c" goto installa
if "%1" == "C:" goto ginstall
if "%1" == "c:" goto ginstall
if "%1" == "d" goto installa
if "%1" == "D:" goto ginstall
if "%1" == "d:" goto ginstall
if "%1" == "e" goto installa
if "%1" == "E:" goto ginstall
if "%1" == "e:" goto ginstall
if "%1" == "f" goto installa
if "%1" == "F:" goto ginstall
if "%1" == "f:" goto ginstall
if "%1" == "G:" goto ginstall
if "%1" == "G" goto installa
if "%1" == "g" goto installa
if "%1" == "g:" goto ginstall
if "%1" == "H:" goto ginstall
if "%1" == "H" goto installa
if "%1" == "h" goto installa
if "%1" == "h:" goto ginstall
if "%1" == "I:" goto ginstall
if "%1" == "I" goto installa
if "%1" == "i" goto installa
if "%1" == "i:" goto ginstall
if "%1" == "J:" goto ginstall
if "%1" == "J" goto installa
if "%1" == "j" goto installa
if "%1" == "j:" goto ginstall
if "%1" == "K:" goto ginstall
if "%1" == "K" goto installa
if "%1" == "k" goto installa
if "%1" == "k:" goto ginstall
if "%1" == "L:" goto ginstall
if "%1" == "L" goto installa
if "%1" == "l" goto installa
if "%1" == "l:" goto ginstall
if "%1" == "M:" goto ginstall
if "%1" == "M" goto installa
if "%1" == "m" goto installa
if "%1" == "m:" goto ginstall
if "%1" == "N:" goto ginstall
if "%1" == "N" goto installa
if "%1" == "n" goto installa
if "%1" == "n:" goto ginstall
if "%1" == "O:" goto ginstall
if "%1" == "O" goto installa
if "%1" == "o" goto installa
if "%1" == "o:" goto ginstall
if "%1" == "P:" goto ginstall
if "%1" == "P" goto installa
if "%1" == "p" goto installa
if "%1" == "p:" goto ginstall
if "%1" == "Q:" goto ginstall
if "%1" == "Q" goto installa
if "%1" == "q" goto installa
if "%1" == "q:" goto ginstall
if "%1" == "R:" goto ginstall
if "%1" == "R" goto installa
if "%1" == "r" goto installa
if "%1" == "r:" goto ginstall
if "%1" == "S:" goto ginstall
if "%1" == "S" goto installa
if "%1" == "s" goto installa
if "%1" == "s:" goto ginstall
if "%1" == "T:" goto ginstall
if "%1" == "T" goto installa
if "%1" == "t" goto installa
if "%1" == "t:" goto ginstall
if "%1" == "U:" goto ginstall
if "%1" == "U" goto installa
if "%1" == "u" goto installa
if "%1" == "u:" goto ginstall
if "%1" == "v:" goto ginstall
if "%1" == "v" goto installa
if "%1" == "V" goto installa
if "%1" == "V:" goto ginstall
if "%1" == "W:" goto ginstall
if "%1" == "W" goto installa
if "%1" == "w" goto installa
if "%1" == "w:" goto ginstall
if "%1" == "x:" goto ginstall
if "%1" == "x" goto installa
if "%1" == "X" goto installa
if "%1" == "X:" goto ginstall
if "%1" == "Y:" goto ginstall
if "%1" == "Y" goto installa
if "%1" == "y" goto installa
if "%1" == "y:" goto ginstall
if "%1" == "z:" goto ginstall
if "%1" == "z" goto installa
if "%1" == "Z" goto installa
if "%1" == "Z:" goto ginstall
if "%1" == "a:" goto jinstall
if "%1" == "a" goto hinstall
if "%1" == "A" goto hinstall
if "%1" == "A:" goto jinstall
if "%1" == "b:" goto jinstall
if "%1" == "b" goto hinstall
if "%1" == "B" goto hinstall
if "%1" == "B:" goto jinstall
@echo off
CLS
ECHO Drive specifier %1 not recognized.
echo.
echo You typed the following command:
echo.
echo TCNSTALL %1 %2
ECHO.
ECHO Try again with a different drive specifier. Or type TCNSTALL ? for
echo more information.
echo.
goto end
:warning2
cls
echo WARNING!!!
echo.
echo A copy of the TCN program already exists. If you continue, it will be
echo overwritten and any previous work you have done will be lost.
echo.
echo To avoid overwriting, use the CTRL + C key combination and then type a Y
echo according to the following instructions:
echo.
echo 1) Press and hold the CTRL key.
echo 2) Type the letter C.
echo 3) Release both keys. A prompt appears "Terminate batch job (Y/N)?"
echo 4) Type the letter Y.
echo.
echo The DOS prompt appears. Type TCNSTALL ? to get information about changing
echo install target drive and directory.
echo.
echo If you want to overwrite, press any other key.
echo.
pause
cls
echo Press and hold the "Y" key to overwrite all files. When you hear
echo rapid beeping sounds coming from your computer, release the "Y" key.
echo When file extraction stops, hold the "Y" key down some more.
echo.
echo Continue this process until you get a DOS prompt.
echo.
goto chk1m
:hinstall
if exist %1:\TCnstall.bat goto failsame
goto installa
:jinstall
if exist %1\TCnstall.bat goto failsame
:ginstall
@echo off
if not "%2" == "" goto installm
if exist %1\usa\options.lxx goto warning2
if exist %1\usa\*.* goto fail3
goto chk1m
:installm
if exist %1\%2\options.lxx goto warning2
if exist %1\%2\*.* goto fail3
:chk1m
if "%2" == "" TCND34AB %1\usa
if not "%2" == "" TCND34AB %1\%2
:CHKBB2
IF EXIST TCND34BB.EXE GOTO BB2
CLS
ECHO INSERT DISK 2 OF 2 WITH TCND34BB.EXE ON IT.
ECHO.
PAUSE
GOTO CHKBB2
:BB2
if "%2" == "" TCND34BB %1\usa
if not "%2" == "" TCND34BB %1\%2
goto passa
:failsame
@echo off
cls
echo Installation not attempted.
echo.
echo The command you typed:
echo.
echo TCNSTALL %1 %2
echo.
echo would result in the TCN program being installed on the same drive (%1)
echo as the source disk. This most often results in an "Insufficient Disk
echo Space" error.
echo.
echo Try typing the TCNSTALL command with a different drive specifier. Or
echo Type TCNSTALL ? or just TCNSTALL for more information.
echo.
goto end
:passa
if "%2" == "" if not exist %1\usa\tucsna.wtp goto fail1
if NOT "%2" == "" if not exist %1\%2\tucsna.wtp goto fail1
cls
echo Installation was SUCCESSFUL.
echo.
echo To start the TCN program:
echo.
echo 1) Type %1
echo 2) Press ENTER.
if "%2" == "" goto step3a
echo 3) Type CD \%2
if exist %1\%2\wtp.tcn del %1\%2\wtp.tcn
rename %1\%2\tucsna.wtp wtp.tcn
goto step4
:step3a
echo 3) Type CD \USA
if exist %1\usa\wtp.tcn del %1\usa\wtp.tcn
rename %1\usa\tucsna.wtp wtp.tcn
goto step4
:pass1
if "%2" == "" if not exist %1:\usa\tucsna.wtp goto fail1
if NOT "%2" == "" if not exist %1:\%2\tucsna.wtp goto fail1
cls
echo Installation was SUCCESSFUL.
echo.
echo To start the TCN program:
echo.
echo 1) Type %1:
echo 2) Press ENTER.
if "%2" == "" goto step3a1
echo 3) Type CD \%2
if exist %1:\%2\wtp.tcn del %1:\%2\wtp.tcn
rename %1:\%2\tucsna.wtp wtp.tcn
goto step4
:step3a1
echo 3) Type CD \USA
if exist %1:\usa\wtp.tcn del %1:\usa\wtp.tcn
rename %1:\usa\tucsna.wtp wtp.tcn
:step4
echo 4) Press ENTER.
echo 5) Type TCN
echo 6) Press ENTER
echo.
echo.
:end